<!DOCTYPE html>
<!-- 
Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.1.1
Version: 2.0.2
Author: KeenThemes
Website: http://www.keenthemes.com/
Contact: support@keenthemes.com
Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes
License: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project.
-->
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<!--<![endif]-->
<!-- BEGIN HEAD -->
<!-- BEGIN BODY -->
<style type="text/css">
    select{
        border: 1px solid #e5e5e5;
        text-align: center; 
    }
 
 #max{
     background: none;
 }  
 #table_1_wrapper{
 	background-color: #fff;
 }
 .row{
 	margin: 0;
 }
   footer{
        	margin-top: -10px;
        }
        .page-content{
        	padding-left: 15px;
            padding-right: 15px;
        }
        .page-content .wraping{
            background: #fff;
            padding-top: 0;
            margin-top: 10px;
        }
        .table_1_wrapper{
            padding-top: 7px;
        }
</style>
<body class="page-header-fixed">
            <search-data></search-data>
			<table class="table table-striped table-bordered table-hover" id="table_1">
			<thead>
				<tr>
<!-- 					<th id="max"><input type="checkbox" class="checkbox_table" /></th> -->
					<th>ID</th>
					<th>设备地址</th>
					<th>故障原因</th>
					<th>记录时间</th>
                    <th>故障码</th>
                    <th>状态</th>
                    <th>处理详情</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<tr class="odd gradeX" ng-repeat="warnModel in warnModelList  track by $index" pg-loaded="{{$last}}" target-table="table_1">
<!-- 					<td>
						<input type="checkbox" class="checkboxes" value="{{warnModel.charger_error_id}}" name="warnModelRowModel"/>
					</td> -->
					<td>
						<span ng-bind="warnModel.charger_error_id"></span>
					</td>
					<td>
						<span ng-bind="warnModel.charger_id"></span>
					</td>
					<td>
						<span ng-bind="warnModel.error_msg" ></span>
                        
					</td>
					<td>
						<span ng-bind="warnModel.create_time | date:'yyyy-MM-dd HH:mm:ss' "></span>
					</td>
                    <td>
                        <span ng-bind="warnModel.error_code"></span>
                    </td>
					<td>
						<span ng-bind="warnModel.status | getValueInStaticFilter : 'dealStatusArray'"></span>
					</td>
					<td>
						<span ng-bind="warnModel.handle_text | commonSubString"> </span>
					</td>
					<td>
						<a class="btn" href="javascript:;" ng-if="warnModel.status==0"
                        ng-click="handleWarn(warnModel);" data-target="#warnModel" data-toggle="modal">
							处理
						</a>
                        <a class="btn" href="javascript:;" ng-if="warnModel.status==1"
                        ng-click="handleWarn(warnModel);" data-target="#warnModel" data-toggle="modal">
                            处理详情
                        </a>
					</td>
				</tr>
			</tbody>
			</table>
            <tm-pagination conf="paginationConf"></tm-pagination>
            <div id="warnModel" class="modal fade" role="dialog" aria-hidden="true" data-backdrop="false">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                            <h4 class="modal-title">故障处理</h4>
                        </div>
                        <div class="modal-body form">
                            <div class="form-group">
                                <div class="row">
                                    <label class="col-sm-3 control-label text-right">处理详情</label>
                                    <div class="col-sm-8">
                                        <div class="input-group">
                                            <textarea class="form-control" rows="3" ng-model="modifyWarn.handle_text">
                                            </textarea>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-times"></i>关闭</button>
                            <button type="button" class="btn btn-primary" ng-click="modifyWarnModel();" ng-if="modifyWarn.status==0"><i class="fa fa-check" ></i>确定</button>
                        </div>
                    </div>
                </div>
            </div>
</body>
</html>



